console.log('-------扩展运算符');
// 扩展运算符,浅拷贝只能复制一层
const girl = {
  name: '开心',
  info: {
    height: 160,
    weight: 160
  }
}
const newGirl = { ...girl };
newGirl.info.height = 170;
console.log('--info', girl, newGirl);